<?php
namespace app\scodetrace\validate;

class Scode extends \app\common\validate\Base {
	protected $rule=[
		// 'scode|防伪码'=>'regex:[A-Za-z]+\w{9,35}',
/*		'hcode'=>
		'acode'=>
		'bcode'=>*/
		'batch_id|批次'=>'check_id:Batch',
		'company_id|企业'=>'check_id:baseinfo/Company',
		'box_no|所在箱号'=>'number',
		'carriage_id'=>'check_id:baseinfo/CarriageCode',
		'status|启用状态'=>'[01]'
	];

	protected $create_require=['company_id'];
}



?>